package com.bristua.mall.order.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.order.biz.QueryOrderDetailBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/28.
 */
@RestController
@Api(value="订单详情",tags={"订单详情"})
public class QueryOrderDetailController {

    @Autowired
    private QueryOrderDetailBiz queryOrderDetailBiz;
    @ApiOperation(value="订单详情")
    @PostMapping(value = "/api/order/detail/{orderId}")
    public Result queryOrderDetail(@PathVariable(value="orderId") String orderId){
        return HandleResultUtil.querySuccessResult(queryOrderDetailBiz.queryOrderDetail(orderId));
    }
}
